package com.kaili.basic.mapper;


import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.OutboundReturnQueryDto;
import com.kaili.basic.pojo.entity.OutboundReturn;
import com.kaili.basic.pojo.entity.OutboundReturnExport;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface OutboundReturnMapper {
    //添加出库退货
    int addOutboundReturn(OutboundReturn outboundReturn);

    //删除出库退货
    int deleteOutboundReturn(OutboundReturn outboundReturn);

    //删除出库退货
    int deleteOutboundReturns(Map<String, Object> map);

    //修改出库退货
    int updateOutboundReturn(OutboundReturn outboundReturn);

    //条件查询获取出库退货信息
    List<OutboundReturn> queryOutboundReturn(Pagination page, OutboundReturnQueryDto outboundReturnQueryDto);

    //id查询获取出库退货详细信息
    OutboundReturn queryOutboundReturnById(Long returnId);

    //订单号查询获取出库退货详细信息
    OutboundReturn queryOutboundReturnByNo(String requestCode);

    //查询当前数据库中的最大id
    Long getMaxReturnId();

    //导出
    List<OutboundReturnExport> queryOutboundReturnExport(OutboundReturnQueryDto outboundReturnQueryDto);
}
